<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>css引入方式 | Introductionbgg</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/css/选择器.html" />
    
    
    <link rel="prev" href="../../md/css/css大纲.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.1"
        data-chapter-title="css引入方式"
        data-filepath="md/css/css引入方式.md"
        data-basepath="../.."
        data-revision="Wed Dec 13 2017 12:24:54 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/HTML/HTML系列.html">
            
                
                    <a href="../../md/HTML/HTML系列.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML系列
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/HTML/20171205pm.html">
            
                
                    <a href="../../md/HTML/20171205pm.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        20171205pm
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="md/HTML/a标签.html">
            
                
                    <a href="../../md/HTML/a标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.1.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="md/HTML/img标签.html">
            
                
                    <a href="../../md/HTML/img标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.2.</b>
                        
                        img标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="md/HTML/表格.html">
            
                
                    <a href="../../md/HTML/表格.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.3.</b>
                        
                        表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="md/HTML/热区.html">
            
                
                    <a href="../../md/HTML/热区.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.4.</b>
                        
                        热区
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/HTML/20171210pm.html">
            
                
                    <a href="../../md/HTML/20171210pm.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        20171210pm
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="md/HTML/video标签.html">
            
                
                    <a href="../../md/HTML/video标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.1.</b>
                        
                        video标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="md/HTML/picture标签.html">
            
                
                    <a href="../../md/HTML/picture标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.2.</b>
                        
                        picture标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="md/HTML/audio标签.html">
            
                
                    <a href="../../md/HTML/audio标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.3.</b>
                        
                        audio标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="md/HTML/20171210am.html">
            
                
                    <a href="../../md/HTML/20171210am.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        20171210am
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="md/HTML/iframe标签.html">
            
                
                    <a href="../../md/HTML/iframe标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.1.</b>
                        
                        iframe标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="md/HTML/form表单标签.html">
            
                
                    <a href="../../md/HTML/form表单标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.2.</b>
                        
                        form表单标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="md/HTML/列表.html">
            
                
                    <a href="../../md/HTML/列表.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.3.</b>
                        
                        列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="md/HTML/实体字符.html">
            
                
                    <a href="../../md/HTML/实体字符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.4.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/css/css大纲.html">
            
                
                    <a href="../../md/css/css大纲.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        css大纲
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="2.1" data-path="md/css/css引入方式.html">
            
                
                    <a href="../../md/css/css引入方式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        css引入方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/css/选择器.html">
            
                
                    <a href="../../md/css/选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="md/css/元素选择器.html">
            
                
                    <a href="../../md/css/元素选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="md/css/class选择器.html">
            
                
                    <a href="../../md/css/class选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        class选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="md/css/ID选择器.html">
            
                
                    <a href="../../md/css/ID选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        ID选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="md/css/关系选择器.html">
            
                
                    <a href="../../md/css/关系选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="md/css/伪类选择器.html">
            
                
                    <a href="../../md/css/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="md/css/属性选择器.html">
            
                
                    <a href="../../md/css/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="md/css/伪对象选择器.html">
            
                
                    <a href="../../md/css/伪对象选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.7.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/css/关于gitbook.html">
            
                
                    <a href="../../md/css/关于gitbook.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        关于gitbook
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >Introductionbgg</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="css&#x5F15;&#x5165;&#x65B9;&#x5F0F;">css&#x5F15;&#x5165;&#x65B9;&#x5F0F;</h2>
<p>css&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x6709;3&#x79CD;&#xFF1A;    </p>
<blockquote>
<p>(1)&#x884C;&#x5185;&#x5F15;&#x5165;<br>(2)&#x9875;&#x5185;&#x5F15;&#x5165;<br>(3)&#x5916;&#x90E8;&#x5F15;&#x5165; </p>
</blockquote>
<h3 id="1&#x884C;&#x5185;&#x5F15;&#x5165;">1.&#x884C;&#x5185;&#x5F15;&#x5165;</h3>
<p>&#x884C;&#x5185;&#x5F15;&#x5165;&#xFF08;&#x53EA;&#x80FD;&#x63A7;&#x5236;&#x5F53;&#x524D;&#x5143;&#x7D20;&#xFF09;
        &#x6CE8;&#x610F;&#xFF1A;&#x4E0D;&#x63A8;&#x8350;&#x7684;&#x5199;&#x6CD5;&#xFF0C;&#x56E0;&#x4E3A;&#x7ED3;&#x6784;&#x6DF7;&#x4E71;&#xFF0C;&#x4E14;&#x4E0D;&#x5229;&#x4E8E;&#x91CD;&#x7528;
        &#x63A7;&#x5236;&#x8303;&#x56F4;&#xFF1A;&#x63A7;&#x5236;&#x8BE5;&#x6807;&#x7B7E;</p>
<pre><code>&lt;div style=&quot;width: 500px;height:500px;background-color: yellowgreen;&quot;&gt;
            &#x6211;&#x662F;&#x4E00;&#x4E2A;&#x997C;

&lt;/div&gt;
</code></pre><h3 id="2&#x9875;&#x5185;&#x5143;&#x7D20;">2.&#x9875;&#x5185;&#x5143;&#x7D20;</h3>
<p>&#x9875;&#x5185;&#x5F15;&#x5165;:&#xFF08;&#x53EA;&#x80FD;&#x9488;&#x5BF9;&#x5F53;&#x524D;HTML&#x6587;&#x4EF6;&#xFF09;
            &#x6CE8;&#x610F;&#xFF1A;&#x8BE5;&#x8BED;&#x6CD5;&#x901A;&#x5E38;&#x4E0D;&#x63A8;&#x8350;&#x4F7F;&#x7528;&#xFF0C;&#x56E0;&#x4E3A;&#x53EA;&#x80FD;&#x63A7;&#x5236;&#x5F53;&#x524D;&#x9875;&#xFF0C;&#x4E0D;&#x80FD;&#x91CD;&#x7528;&#x5230;&#x5176;&#x4ED6;&#x9875;&#x9762;&#x4E0A;
            &#x63A7;&#x5236;&#x8303;&#x56F4;&#xFF1A;&#x63A7;&#x5236;&#x6574;&#x4E2A;&#x5F53;&#x524D;&#x7684;&#x9875;&#x9762;</p>
<pre><code>&lt;title&gt;&lt;/title&gt;
        &lt;style type=&quot;text/css&quot;&gt;
        div{
                border-radius:50% ;
            } 
        &lt;/style&gt;
&lt;div&gt;
            &#x6211;&#x662F;&#x53E6;&#x5916;&#x4E00;&#x4E2A;&#x997C;
        &lt;/div&gt;
</code></pre><h3 id="3&#x9875;&#x5916;&#x5F15;&#x5165;&#x65B9;&#x5F0F;">3.&#x9875;&#x5916;&#x5F15;&#x5165;&#x65B9;&#x5F0F;</h3>
<p>&#x9875;&#x5916;&#x5F15;&#x5165; &#xFF08;&#x53EF;&#x4EE5;&#x9488;&#x5BF9;&#x4E00;&#x4E2A;&#x6216;&#x8005;&#x591A;&#x4E2A;HTML&#x6587;&#x4EF6;&#xFF09;</p>
<p>&#x6CE8;&#x610F;&#xFF1A;&#x662F;&#x4E00;&#x4E2A;&#x72EC;&#x7ACB;&#x7684;css&#x6587;&#x4EF6;&#xFF0C;&#x6CE8;&#x610F;&#x8BED;&#x6CD5;&#x7684;&#x5199;&#x6CD5;&#xFF0C;&#x53EF;&#x4EE5;&#x6709;&#x6548;&#x7684;&#x91CD;&#x7528;&#x6837;&#x5F0F;
link&#x6807;&#x7B7E;&#x8868;&#x793A;&#x4E00;&#x4E2A;&#x94FE;&#x63A5;&#xFF0C;&#x628A;&#x6837;&#x5F0F;&#x5173;&#x8054;&#x8FDB;&#x6765;</p>
<pre><code>        &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/web.css&quot;/&gt;
    &lt;/head&gt;
</code></pre><h3 id="&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x7684;&#x6CE8;&#x610F;&#x4E8B;&#x9879;">*&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x7684;&#x6CE8;&#x610F;&#x4E8B;&#x9879;</h3>
<pre><code>1.&#x5C31;&#x8FD1;&#x539F;&#x5219;&#xFF0C;&#x5728;&#x9009;&#x62E9;&#x5668;&#x548C;&#x5C5E;&#x6027;&#x90FD;&#x76F8;&#x540C;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x8C01;&#x66F4;&#x63A5;&#x8FD1;&#x76EE;&#x6807;&#x5143;&#x7D20;&#x5219;&#x8C01;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#x8D8A;&#x9AD8;

2.&#x4E0D;&#x540C;&#x7684;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x4E4B;&#x95F4;&#xFF0C;&#x5C3D;&#x91CF;&#x4E0D;&#x8981;&#x51FA;&#x73B0;&#x91CD;&#x590D;&#x5C5E;&#x6027;&#x3002;

3.&#x5728;&#x771F;&#x6B63;&#x7684;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#xFF08;&#x771F;&#x6B63;&#x7684;&#x53D1;&#x5E03;&#x5230;&#x7F51;&#x4E0A;&#x7684;&#x3002;&#x8FD8;&#x6709;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#xFF09;&#xFF0C;&#x5C3D;&#x91CF;&#x7684;&#x7528;&#x9875;&#x5916;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x6765;&#x5199;&#x6837;&#x5F0F;&#xFF0C;&#x65B9;&#x4FBF;&#x6211;&#x4EEC;&#x7BA1;&#x7406;HTML&#x6587;&#x4EF6;&#x548C;&#x6837;&#x5F0F;&#x6587;&#x4EF6;
</code></pre>
                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/css/css大纲.html" class="navigation navigation-prev " aria-label="Previous page: css大纲"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/css/选择器.html" class="navigation navigation-next " aria-label="Next page: 选择器"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
